package com.xf.day01

class Student ( var name:String, var age:Int) {

  def printInfo(): Unit = {
    println(name + " " + age + " " + "我在张家界学院学习")
  }

}

object Student {
  def main(args: Array[String]): Unit = {

    var student: Student=  new Student("张三", 35)
    student = new Student("王五", 67)

    student.printInfo()

  }
}
